Added robustness for null ImageView
Made it a library