Image dimensions validation