Fix min image size + workaround weird greasemonkey bug. Fixes #710.