Fix show image (jpg and gif type).