- added fixes for jpeg