* store image width and height in dimensions object * allow specifying max_size for width and height (default 0xffff) * throw if width or height are out of range - 0...max_size