Core: oversized image check now only checks if both width and height are nonzero