formatted images correctly