Only use fixed image size when the backend is html5

Kudos from Runxia