Allow null value for image path
Extract methods for close and resize button