Client response buffer fix

1 - The application now peeks for incoming data size.
2 - Image UI now scale accordingly.