Make sure image size under 500k.