Define and use image size limit in bytes instead of KB