try to keep image centered