changed coords from original to resized