fixed bug in image dimensions for png loader