add rake task & fix image process bug