Sometimes deploy will fail due to `resized_but_still_too_large` error. We should check if the resized iamge/gif is below the threshold.