Added image auto-resize