Handle max_kb in nokia.image-processing localmsg api

I tested with several images, the size of generated image is about 10%-20% larger than the given size which I think it's acceptable.
It'd be good to also test the case where we send back the image without scaling it (max_kb > file size, max_hres > image width, max_vres > image height)