Image resizing function examples