Fixed a bug with saving bitmap sizes