allow to print an image centered or right aligned