#154: fix blinking when fading in image for inline gallery