fixed fileIO Bug when returning bitmap