refactory image view