cleanup and size check *Read description

I cant check the size constraint manually. I tried to large images from
the web on my emulator but the download fails. All I could use is the
build in camera pictures.