fixed code so image would display

resize appeared to break