Renamed Images type to Image and make it support docker api version < 1.7 and > 1.8