Implemented size to fit (not tested for images).