add/remove listener on attach/detach to/from container
port PEWImageView to minSdkVersion=7