Resizes pictures