Fixed redirect when creating image