Converted Height and Width to Ints
Added resizing and temporary storage.