It puts it in the top left corner, i want it in the middle.
You’re going to have to be a lot more specific, but, as a guess, you might try:
local image = display.newImageRect( "image.png", 100, 100 )
image.x = display.contentCenterX
image.y = display.contentCenterY
Source: https://docs.coronalabs.com/api/library/display/newImageRect.html