fix null exception
set zoom ratio
fix file path
made zoomratio a double
classes