make code more beautiful
fix a small bug which show pictures
add rescue in the action get_ip_address because where there may not have a better internet  connection