Do scaling before decoding gif