Fixed up width/height comparison
Added proper assertion for GIF reader