Add in new flip image method
add image cache
add dialog