added possibility to use imagine new metadata api

removed the hardcoded version pinning on imagine 0.5

using the new metadata-api in autorotatefilter.

should be bc.