add special case for jpeg as it can be good although small