fixing blank image problem