Fix #1408 JS performance selector issue
Fix overflow issue for long image mime type