properly rendering images