Bug fixed - inputStream for image was closed