Save images correctly