resizes pictures