send width and height as int

use !empty instead of isset