[[ Bug 13273 ]] Load gif images fully to get the correct frame count