Renamed and moved resize image to chatlib