Make an image go smaller as the y value lowers

ive seen this done before but i dont know the code, i want to have an image that is moved with the arrows decrease in size as the y value gets lower…so kinda like a 3d type of deal so the farther back you go the smaller you are…