Fixed unnecessary image open to figure out dpi