Removed warning and optimized ImageSpan size