Simplify using custom resolution for sam3 and sam3_video inference (#42787)
* simplify using custom resolution for sam3 and sam3_video inference
* revert auto format
* use setters and properties
* Fix docstring
* update dict to correctly save image_size to file for backward compatibility