Fixing jpg issue