use existing get image dimesion method