Compress image

Set a target in kilobytes. Quality drops first, then dimensions if the file is still too large.