add parse image functionality
add spec for image functionality
catch SocketError
remove message on raise error
rename method
refactor spec