update dimension detector for images : prototype..