Fixed redirect to the front page after posting an image