Image upload code change - successfully retrieved, no more corrupted
image error