Added feature to resize images