started on img dimension validation