Fixed keys for setting dimensions, these need to be minimum dimensions

also changed test accordingly
set default dimensions to empty array
added validation for image dimension + test