Fixed image fs resize issue. Many more checks needed.