added ref and change image size