add methods image. fix bugs