started on case, fixed jpg bug