added x and y for images